<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
	<title>企业黑名单管理</title>
	<link rel="stylesheet" href="/css/newStyle.css"/>
</head>
<body>
  <div id="layout"></div>
</body>
<script type="text/javascript" src="/js/menu.js"></script>
<script type="text/javascript" th:inline="javascript">
//层级，｛标题，URL｝
    var userName = [[${#httpServletRequest.remoteUser}]];
    var xxx = "/api/enterpriseDirectories"
     if (userName == "admin"){
       var searchUrl = "/api/blackListDirectories";
     }else{
       var searchUrl = "/api/blackListDirectories/search/findByUsername?username="+userName;
     }

    var pageParas ={
       columns:[
         {
           title: '企业名称',
           dataIndex: 'enterpriseName',
           type:"input",
           notNull:true
         },{
           title: '原因',
           dataIndex: 'remark',
           type:"input",
           notNull:true
         }

      ],  
      // resourceUrl:"http://192.168.3.2:8083/api/enterpriseDirectories", 
      // listUrl:"http://192.168.3.2:8083/api/enterpriseDirectories", 
      resourceUrl:xxx, //crud
      listUrl:searchUrl,  //http://localhost:8083/api/purchaseRecords/search/findByUsername?username=swl
      title : "企业黑名单管理",
      uploadUrl:'/api/upload/',//文件上传
      deleteUrl: "/api/delete/blackListDirectory",//单数
      defaultSelectedKeys:['苹果'],
      defaultOpenKeys:['水果']
    } 
</script>
<script src="/js/commonV3.js"></script>
<script src="/js/crudLayout-bundle.js"></script>
</html>